<!DOCTYPE HTML>
<title>Canvas test: 2d.type.prototype</title>
<!--[if IE]><script src="../excanvas/excanvas.js"></script><![endif]-->
<script src="../tests.js"></script>
<link rel="stylesheet" href="../tests.css">
<link rel="prev" href="2d.type.delete.html" title="2d.type.delete">
<link rel="next" href="2d.type.replace.html" title="2d.type.replace">
<body class="show_output">
<p>
 <a href="2d.type.delete.html" accesskey="p" title="[p] 2d.type.delete">&lt;</a>
 <a href="index.html">[index]</a>
 <a href="2d.type.replace.html" accesskey="n" title="[n] 2d.type.replace">&gt;</a>
<h1><a href="index.2d.html">2d</a>.<a href="index.2d.type.html">type</a>.prototype</h1>
<p class="desc">window.CanvasRenderingContext2D.prototype is { DontDelete, ReadOnly }, and its methods are not</p>
<div class="refs">References:
<ul>
<li><a href="spec.html#testrefs.context.2d.type">context.2d.type</a>

</ul>
</div>
<p class="notes">Defined in "Language Bindings for DOM Specifications" (draft)
<p class="output">Actual output:</p>
<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas>

<ul id="d"></ul>
<script>
_addTest(function(canvas, ctx) {

_assert(window.CanvasRenderingContext2D.prototype, "window.CanvasRenderingContext2D.prototype");
_assert(window.CanvasRenderingContext2D.prototype.fill, "window.CanvasRenderingContext2D.prototype.fill");
window.CanvasRenderingContext2D.prototype = null;
_assert(window.CanvasRenderingContext2D.prototype, "window.CanvasRenderingContext2D.prototype");
delete window.CanvasRenderingContext2D.prototype;
_assert(window.CanvasRenderingContext2D.prototype, "window.CanvasRenderingContext2D.prototype");
window.CanvasRenderingContext2D.prototype.fill = 1;
_assertSame(window.CanvasRenderingContext2D.prototype.fill, 1, "window.CanvasRenderingContext2D.prototype.fill", "1");
delete window.CanvasRenderingContext2D.prototype.fill;
_assertSame(window.CanvasRenderingContext2D.prototype.fill, undefined, "window.CanvasRenderingContext2D.prototype.fill", "undefined");


});
</script>

